package com.wangxs.cry.dec.params;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserParams extends BaseParam{
    private static final long serialVersionUID = -1;

    @NotBlank(message = "主键不能为空", groups = {add.class})
    @Size(max = 33, message = "请检查id是否正确")
    public String id;

    @NotBlank(message = "姓名不能为空", groups = {add.class})
    @Size(min = 2, max = 33, message = "请检查姓名长度")
    public String name;

    @NotBlank(message = "编号不能为空", groups = {add.class})
    @Size(min = 6, max = 6, message = "请检查编号")
    public String makNo;
}
